package com.distribute.core.notify.redis.redisTemplate;

import com.distribute.core.notify.redis.DLCRedisCenter;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * TODO
 *
 * @author chennengcheng
 * @date 2022-10-09 11:19
 * @remark
 */
public class RedisTemplateCenter implements DLCRedisCenter<RedisTemplate> {

    private ClassLoader classLoader;

    private RedisTemplate redisTemplate;

    @Override
    public void setBeanClassLoader(ClassLoader classLoader) {
        this.classLoader = classLoader;
    }

    @Override
    public RedisTemplate getRedisClient() {
        return this.redisTemplate;
    }

    public RedisTemplateCenter(RedisTemplate redisTemplate) {
        this.redisTemplate = redisTemplate;
    }
}
